#include "test.hpp"

Test::Test()
{
    QDeclarativeView *view = new QDeclarativeView(QUrl::fromLocalFile("qml/defiqt/main.qml"));

    QObject *object = view->rootObject();

    QObject::connect(object,SIGNAL(connect(QString, QString)),this,SLOT(buttonConnection(QString,QString)));

    view->show();
}

Test::~Test()
{}

void Test::buttonConnection(QString id, QString pass)
{
    qDebug() << "id :" << id << endl;
    qDebug() << "pass :" << pass << endl;
}

